using System;
using System.Collections.Generic;
using System.Text;
using DTOLayer;

namespace BUSLayer
{
   public class AccoutBUS
    {
       public static void InsertAccout(AccoutDTO tk)
       {
           AccoutDAO.InsertAccout(tk);

       }
       public static void ThemAccout(AccoutDTO tk)
       {
           AccoutDAO.ThemAccout(tk);
       }
       public static void DeleteAccoutTheoMaTaiKhoan(long matk)
       {
           AccoutDAO.DeleteAccoutTheoMaTaiKhoan(matk);
       }
       public static long MaxMaAccout()
       {
           long kq = AccoutDAO.MaxMaAccout();
           return kq;
       }
       public static void UpdateACCOUT(AccoutDTO tk)
       {
           AccoutDAO.UpdateACCOUT(tk);
       }
       public static List<AccoutDTO> LayAllDSAccRaList()
       {

           List<AccoutDTO> list = new List<AccoutDTO>();
           list = AccoutDAO.LayAllDSAccRaList();
           return list;
       }
      public static AccoutDTO TaiKhoanTheo_UservaPass(string us, string pass)
       {
           AccoutDTO ac = new AccoutDTO();
           ac = AccoutDAO.TaiKhoanTheo_UservaPass(us, pass);
           return ac;

       }
    }
}
